* image.c: Fix animation cache signature memory leak.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2013 07:01:37 +0000 (00:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2013 07:01:37 +0000 (00:01 -0700)
commitfa2bcbcac3db4114586ad9628f840cf7733eabfc
treee31eb48fa28203c6895122488df2b3d2ca7b3294
parent7602b18f8551cb042aed2394f9797b965ee1a07d
* image.c: Fix animation cache signature memory leak.

Fix some other minor performance problems while we're at it.
(imagemagick_create_cache): Clear just the members that
need clearing.  Don't set update_time, as caller does that now.
(imagemagick_prune_animation_cache, imagemagick_get_animation_cache):
Simplify by using pointer-to-pointer instead of a prev pointer.
(imagemagick_prune_animation_cache): Use make_emacs_time rather
than EMACS_TIME_FROM_DOUBLE, and DestroyString rather than free.
(imagemagick_get_animation_cache): Don't xstrdup the image signature;
it's already a copy.  Free the signature probe unless it's cached.
src/ChangeLog
src/image.c